//
//  HHWERScrollView.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "HHWERScrollView.h"

@interface HHWERScrollView () <
UITableViewDataSource,
UITableViewDelegate,
UITextViewDelegate,
UITextFieldDelegate
>

/// VFWEG数据源
@property (nonatomic, strong) NSMutableArray *data;

/// GQERG
@property (nonatomic, strong) UITableView *VFWEG;

/// VSAV
@property (nonatomic, strong) UITextView *FFGQERG;

/// V我DVD我
@property (nonatomic, strong) UITextField *VX;

@end

@implementation HHWERScrollView

#pragma mark - # Delegate
//MARK: UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return self.data.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
}

- (id)initWithFrame:(CGRect)frame {
	if (self = [super initWithFrame:frame]) {
		[self addSubview:self.VFWEG];
		[self addSubview:self.FFGQERG];
		[self addSubview:self.VX];
	}
	return self;
}

#pragma mark - # Getter
- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UITableView *)VFWEG {
	if (!_VFWEG) {
		_VFWEG = [[UITableView alloc] init];
		[_VFWEG setDelegate:self];
		[_VFWEG setRowHeight:34];
		[_VFWEG setSectionHeaderHeight:12];
		[_VFWEG setSectionFooterHeight:12];
		[_VFWEG setSeparatorStyle:UITableViewCellSeparatorStyleSingleLineEtched];
		[_VFWEG setDataSource:self];
	}
	return _VFWEG;
}

- (UITextView *)FFGQERG {
	if (!_FFGQERG) {
		_FFGQERG = [[UITextView alloc] init];
		[_FFGQERG setDelegate:self];
		[_FFGQERG setText:@"VWEvDSADVASDV"];
		[_FFGQERG setTextColor:[UIColor blackColor]];
		[_FFGQERG setSecureTextEntry:YES];
	}
	return _FFGQERG;
}

- (UITextField *)VX {
	if (!_VX) {
		_VX = [[UITextField alloc] init];
		[_VX setFrame:CGRectMake(11, 110, 11, 11)];
		[_VX setBackgroundColor:[UIColor whiteColor]];
		[_VX setKeyboardType:UIKeyboardTypeNumberPad];
		[_VX setEnablesReturnKeyAutomatically:YES];
		[_VX setSecureTextEntry:YES];
		[_VX setDelegate:self];
	}
	return _VX;
}

@end
